package com.wnnight.wys.vo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.*;

/**
 * @author rzh6230
 * 2022/8/29 9:55
 * <p>
 * 维修人员实体类
 */
@Getter
@Setter
@ToString
public class MaintenanceVo {
    @NotNull(message = "工单id不能为空")
    @Min(value = 0, message = "工单id不能小于0")
    private Integer repairsId;
    @NotBlank(message = "维修人员姓名不能为空")
    @Size(min = 1,max = 10,message = "维修人员姓名不能超过10个字符")
    private String maintenance;
    @Pattern(regexp = "^(?:(?:\\+|00)86)?1(?:(?:3[\\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\\d])|(?:9[189]))\\d{8}$")
    private String mtPhone;
}
